﻿using PAP.Application.Dtos.UserAccount.Commands;
using PAP.Services.Contracts.Commands.UserAccount;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PAP.Services.Commands.UserAccount
{
    public class UserAccountCommandsService : IUserAccountCommandsService
    {
        #region "Fields"
        private readonly ICommandDispatcher _commandDispatcher;
        #endregion

        #region "Constructors"
        public UserAccountCommandsService(ICommandDispatcher commandDispatcher)
        {
            this._commandDispatcher = commandDispatcher;
        }
        #endregion

        public void RegisterUser(RegisterUserCommand command)
        {
            _commandDispatcher.Execute(command, false);
        }
    }
}
